#include "FileManager.h"


#define WHERESTR  "Error[file %s, line %d]: "
#define WHEREARG  __FILE__, __LINE__


int main(int argc, char ** argv)
{
	volume_t volume;

	if ((readHDF5(argv[1], "value", &volume)) < 0)
	{
		fprintf(stderr, WHERESTR" unable to read file\n",WHEREARG);
                return -1;
	}

	// Checking
        fprintf(stdout, "%f %f %f\n",volume.data[0][10][1243],volume.data[0][10][1244],volume.data[0][10][1245]);


	if ((destroyVolume(volume)) < 0)
	{
                fprintf(stderr, WHERESTR" unable to open destroy\n",WHEREARG);
                return -1;
	}

	return 0;
}
